/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package Telas;

import java.awt.Toolkit;
import java.util.logging.Level;
import java.util.logging.Logger;

/**
 *
 * @author Thalyson
 */
public class Tela_PrincipalTecnico extends javax.swing.JFrame {

    /**
     * Creates new form Tela_PrincipalTecnico
     */
    public Tela_PrincipalTecnico(String user) {
        initComponents();
        jl_loged.setText(user);
        setSize(603, 503);
        setLocationRelativeTo(null);
        Icon();
    }

    private Tela_PrincipalTecnico() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
 
//<----------------------------------------------------------------------------------------------------------------------------------------->    

    private void Icon(){
    
        setIconImage(Toolkit.getDefaultToolkit().getImage(getClass().getResource("assistec_icon.png")));
        
    }    

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jl_loged = new javax.swing.JLabel();
        jLabel9 = new javax.swing.JLabel();
        jButton1 = new javax.swing.JButton();
        jSeparator1 = new javax.swing.JSeparator();
        jLabel8 = new javax.swing.JLabel();
        jb_cadcliente = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jb_gerenciaros = new javax.swing.JButton();
        jLabel7 = new javax.swing.JLabel();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        jm_solicitacoes = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        jm_sobreassistec = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
        setTitle("AssisTec -Tela Principal");
        setResizable(false);
        getContentPane().setLayout(null);

        jl_loged.setBackground(new java.awt.Color(255, 255, 255));
        jl_loged.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N
        jl_loged.setForeground(new java.awt.Color(255, 255, 255));
        jl_loged.setToolTipText("");
        jl_loged.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(255, 255, 255)));
        getContentPane().add(jl_loged);
        jl_loged.setBounds(220, 410, 160, 30);

        jLabel9.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_loged.png"))); // NOI18N
        getContentPane().add(jLabel9);
        jLabel9.setBounds(180, 410, 30, 30);

        jButton1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_sair.png"))); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });
        getContentPane().add(jButton1);
        jButton1.setBounds(390, 400, 41, 40);

        jSeparator1.setForeground(new java.awt.Color(255, 255, 255));
        getContentPane().add(jSeparator1);
        jSeparator1.setBounds(70, 390, 530, 10);

        jLabel8.setBackground(new java.awt.Color(255, 255, 255));
        jLabel8.setForeground(new java.awt.Color(255, 255, 255));
        jLabel8.setText("AssisTec");
        getContentPane().add(jLabel8);
        jLabel8.setBounds(10, 380, 60, 14);

        jb_cadcliente.setBackground(new java.awt.Color(255, 255, 255));
        jb_cadcliente.setForeground(new java.awt.Color(78, 78, 78));
        jb_cadcliente.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_analisar.jpeg"))); // NOI18N
        jb_cadcliente.setToolTipText("Gerencia Análises");
        jb_cadcliente.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_cadcliente.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_cadclienteActionPerformed(evt);
            }
        });
        getContentPane().add(jb_cadcliente);
        jb_cadcliente.setBounds(80, 110, 150, 150);

        jLabel2.setBackground(new java.awt.Color(78, 78, 78));
        jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel2.setForeground(new java.awt.Color(255, 255, 255));
        jLabel2.setText("GERENCIAR ANÁLISE");
        getContentPane().add(jLabel2);
        jLabel2.setBounds(90, 270, 130, 14);

        jb_gerenciaros.setBackground(new java.awt.Color(78, 78, 78));
        jb_gerenciaros.setForeground(new java.awt.Color(78, 78, 78));
        jb_gerenciaros.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_executados.png"))); // NOI18N
        jb_gerenciaros.setToolTipText("Gerenciar O.S.");
        jb_gerenciaros.setBorder(new javax.swing.border.LineBorder(new java.awt.Color(255, 255, 255), 1, true));
        jb_gerenciaros.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jb_gerenciarosActionPerformed(evt);
            }
        });
        getContentPane().add(jb_gerenciaros);
        jb_gerenciaros.setBounds(370, 110, 150, 150);

        jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 12)); // NOI18N
        jLabel7.setForeground(new java.awt.Color(255, 255, 255));
        jLabel7.setText("GERENCIAR O.S.");
        getContentPane().add(jLabel7);
        jLabel7.setBounds(400, 270, 100, 14);

        jLabel1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Imagens/assistec_fundo3.png"))); // NOI18N
        getContentPane().add(jLabel1);
        jLabel1.setBounds(0, 0, 600, 500);

        jMenuBar1.setBackground(new java.awt.Color(255, 255, 255));
        jMenuBar1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenuBar1.setForeground(new java.awt.Color(255, 255, 255));

        jMenu1.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenu1.setText("   AssisTec   ");
        jMenu1.setBorderPainted(true);

        jm_solicitacoes.setText("Registrar Solicitação");
        jm_solicitacoes.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jm_solicitacoesActionPerformed(evt);
            }
        });
        jMenu1.add(jm_solicitacoes);

        jMenuBar1.add(jMenu1);

        jMenu3.setBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(78, 78, 78)));
        jMenu3.setText("   Sobre   ");
        jMenu3.setBorderPainted(true);

        jm_sobreassistec.setBackground(new java.awt.Color(255, 255, 255));
        jm_sobreassistec.setText("Sobre AssisTec");
        jm_sobreassistec.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jm_sobreassistecActionPerformed(evt);
            }
        });
        jMenu3.add(jm_sobreassistec);

        jMenuBar1.add(jMenu3);

        setJMenuBar(jMenuBar1);

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        Tela_Sair ts = new Tela_Sair();
        ts.setVisible(true);
    }//GEN-LAST:event_jButton1ActionPerformed

    private void jm_solicitacoesActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jm_solicitacoesActionPerformed
        Tela_RegSolicitacao trs = null;
        try {
            trs = new Tela_RegSolicitacao();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        trs.setVisible(true);
    }//GEN-LAST:event_jm_solicitacoesActionPerformed

    private void jm_sobreassistecActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jm_sobreassistecActionPerformed
        Tela_Sobre ts = new Tela_Sobre();
        ts.setVisible(true);
    }//GEN-LAST:event_jm_sobreassistecActionPerformed

    private void jb_cadclienteActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_cadclienteActionPerformed
        Tela_GerAnalises tga = null;
        try {
            tga = new Tela_GerAnalises();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tga.setVisible(true);
    }//GEN-LAST:event_jb_cadclienteActionPerformed

    private void jb_gerenciarosActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jb_gerenciarosActionPerformed

        Tela_GerOSTecnico tgot = null;
        try {
            tgot = new Tela_GerOSTecnico();
        } catch (ClassNotFoundException ex) {
            Logger.getLogger(Tela_Principal.class.getName()).log(Level.SEVERE, null, ex);
        }
        tgot.setVisible(true);
    }//GEN-LAST:event_jb_gerenciarosActionPerformed

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalTecnico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalTecnico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalTecnico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Tela_PrincipalTecnico.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new Tela_PrincipalTecnico().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton jButton1;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JSeparator jSeparator1;
    private javax.swing.JButton jb_cadcliente;
    private javax.swing.JButton jb_gerenciaros;
    private javax.swing.JLabel jl_loged;
    private javax.swing.JMenuItem jm_sobreassistec;
    private javax.swing.JMenuItem jm_solicitacoes;
    // End of variables declaration//GEN-END:variables
}
